package com.attilax.cmsPoster;

import java.io.File;

import org.openqa.selenium.firefox.FirefoxDriver;

import com.attilax.io.pathx;

public class FirefoxDriverTest {

	public static void main(String[] args) {
		FirefoxDriver driver =null;
		String ffpath;
		ffpath = new File(pathx.classPathParent()).getParent()
				+ "\\Mozilla Firefox\\firefox.exe";
		if(!new File(ffpath).exists())
		{
			throw new RuntimeException("file not exist:"+ffpath);
		}
		System.setProperty("webdriver.firefox.bin", ffpath);
		driver = new FirefoxDriver();
		String pubUrl="http://www.baidu.com";
		driver.get(pubUrl);
		System.out.println("ff");
	}

}
